<template>
  <div>
    <el-table :data="table.data" border>
      <el-table-column prop="title" label="标题" />
      <el-table-column prop="author" label="作者" />
      <el-table-column prop="display_time" label="显示时间" />
    </el-table>
    <WrapPagination>
      <el-pagination
        class="pagination"
        :current-page="table.page"
        :page-sizes="$store.state.app.pagination.sizes"
        :page-size="table.size"
        :layout="$store.state.app.pagination.layout"
        :total="table.total"
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
      />
    </WrapPagination>
  </div>
</template>

<script>
import { TableMixin } from '../../components/mixin'
import { getList } from '../../api/table'

export default {
  mixins: [TableMixin],
  mounted() {
    this.getList()
  },
  methods: {
    getList() {
      this.wrapResourceList(getList, {})
    }
  }
}
</script>

<style scoped>

</style>
